//
//  ExtensionViewModel.swift
//  SwiftRx研究
//
//  Created by 世霖 on 2020/7/20.
//  Copyright © 2020 世霖. All rights reserved.
//

import UIKit
import RxSwift
import RxCocoa
import RxDataSources

//扩展label
extension Reactive where Base : UILabel {
    var validationReult: Binder <ValidationResult> {
        return Binder(base) { label , result in
            label.textColor = result.textColor
            label.text = result.description
            
        }
        
    }
    
}
